home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / iconcont / readme.txt < prev   
Encoding:
Text File  |  1998-02-02  |  2.0 KB  |  49 lines

  1. Icon Container 1.0 (By Xavier Flix)
  2.  
  3. Description:
  4. This small OCX will display the icons contained in any DLL, EXE or Win32 Icon Library. Basic functionality has been added to the control in order to let you use it in your applications.
  5.  
  6. Please note that this is the first OCX I release to the public, so if you found any bugs or have any suggestions, please drop me a line at:
  7.     prgsupport@xfx.net
  8.     http://xfx.net/Programs
  9.  
  10. Properties:
  11.     - BackColor
  12.     Use this property to change / get the background color of the container.
  13.  
  14.         IconContainer.BackColor = Rgb(128,128,128)
  15.  
  16.     - CountIcons    (Long)
  17.     This property returns the number of icons contained in the currently selected         library. (See Property IconLibrary)
  18.  
  19.         Total_Icons = IconContainer.CountIcons
  20.  
  21.     - IconLibrary    (String)
  22.     This property should point to the file containing the icons you want to display.
  23.  
  24.         IconContainer.IconLibrary = "c:\windows\desktop\shell32.dll"    
  25.  
  26.     - SelectedIndex    (Long)
  27.     Use this property to get the currently selected icon. You can also set the property     to force the control to select an specific icon.
  28.  
  29.         MsgBox "The selected icon is: #" & IconContainer.SelectedIndex
  30.  
  31.  
  32. Methods:
  33.     - GetIcon( target as PictureBox, iconIdx as Long )
  34.     Use this method to retrieve the image of an specific icon. The arguments of the     method are:
  35.         target: This is where the method will paint the image of the icon.
  36.         iconIdx: This is the index of the icon you want to get the image from.
  37.  
  38.         IconContainer.GetIcon Picture1, IconContainer.SelectedIndex
  39.  
  40. Events:
  41.     - IconDblClick( iconIdx as Long )
  42.     This event will occur whenever the user double clicks an icon. The clicked icon     index is returned by iconIdx.
  43.  
  44.     - IconSelected( iconIdx as Long )
  45.     This event will occur whenever the user clicks an icon. The clicked icon         index is returned by iconIdx. (This is equivalent to a Click event.)
  46.  
  47. Known Bugs:
  48.     Sometimes, depending on the container's size, you'll be able to select blank spaces where no icons exist.
  49.     The values for BackColor and IconLibrary get lost when set in Desing Mode.